package com.zheng.upms.dao.model;

import java.io.Serializable;
import java.util.Date;

public class UpmsScheduleJobLog implements Serializable {
    /**
     * 编号
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 任务ID
     *
     * @mbg.generated
     */
    private Integer jobId;

    /**
     * 任务名称
     *
     * @mbg.generated
     */
    private String jobName;

    /**
     * 任务分组
     *
     * @mbg.generated
     */
    private String jobGroup;

    /**
     * 执行计划
     *
     * @mbg.generated
     */
    private String cron;

    /**
     * 调度方式 false 远程 true 本地
     *
     * @mbg.generated
     */
    private Boolean isLocal;

    /**
     * 远程请求方式 只支持POST
     *
     * @mbg.generated
     */
    private String remoteRequestMethod;

    /**
     * 远程执行url
     *
     * @mbg.generated
     */
    private String remoteUrl;

    /**
     * 执行类名称 包名+类名
     *
     * @mbg.generated
     */
    private String beanClass;

    /**
     * 执行方法名称
     *
     * @mbg.generated
     */
    private String methodName;

    /**
     * 触发器
     *
     * @mbg.generated
     */
    private String jobTrigger;

    /**
     * 参数
     *
     * @mbg.generated
     */
    private String params;

    /**
     * 是否异步  0否 1是
     *
     * @mbg.generated
     */
    private Boolean isAsync;

    /**
     * 描述
     *
     * @mbg.generated
     */
    private String remarks;

    /**
     * 执行状态 0失败 1成功
     *
     * @mbg.generated
     */
    private Integer status;

    /**
     * 失败信息
     *
     * @mbg.generated
     */
    private String error;

    /**
     * 耗时(单位：毫秒)
     *
     * @mbg.generated
     */
    private Long times;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 修改时间
     *
     * @mbg.generated
     */
    private Date modifyTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getJobId() {
        return jobId;
    }

    public void setJobId(Integer jobId) {
        this.jobId = jobId;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public Boolean getIsLocal() {
        return isLocal;
    }

    public void setIsLocal(Boolean isLocal) {
        this.isLocal = isLocal;
    }

    public String getRemoteRequestMethod() {
        return remoteRequestMethod;
    }

    public void setRemoteRequestMethod(String remoteRequestMethod) {
        this.remoteRequestMethod = remoteRequestMethod;
    }

    public String getRemoteUrl() {
        return remoteUrl;
    }

    public void setRemoteUrl(String remoteUrl) {
        this.remoteUrl = remoteUrl;
    }

    public String getBeanClass() {
        return beanClass;
    }

    public void setBeanClass(String beanClass) {
        this.beanClass = beanClass;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getJobTrigger() {
        return jobTrigger;
    }

    public void setJobTrigger(String jobTrigger) {
        this.jobTrigger = jobTrigger;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public Boolean getIsAsync() {
        return isAsync;
    }

    public void setIsAsync(Boolean isAsync) {
        this.isAsync = isAsync;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public Long getTimes() {
        return times;
    }

    public void setTimes(Long times) {
        this.times = times;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", jobId=").append(jobId);
        sb.append(", jobName=").append(jobName);
        sb.append(", jobGroup=").append(jobGroup);
        sb.append(", cron=").append(cron);
        sb.append(", isLocal=").append(isLocal);
        sb.append(", remoteRequestMethod=").append(remoteRequestMethod);
        sb.append(", remoteUrl=").append(remoteUrl);
        sb.append(", beanClass=").append(beanClass);
        sb.append(", methodName=").append(methodName);
        sb.append(", jobTrigger=").append(jobTrigger);
        sb.append(", params=").append(params);
        sb.append(", isAsync=").append(isAsync);
        sb.append(", remarks=").append(remarks);
        sb.append(", status=").append(status);
        sb.append(", error=").append(error);
        sb.append(", times=").append(times);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UpmsScheduleJobLog other = (UpmsScheduleJobLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getJobId() == null ? other.getJobId() == null : this.getJobId().equals(other.getJobId()))
            && (this.getJobName() == null ? other.getJobName() == null : this.getJobName().equals(other.getJobName()))
            && (this.getJobGroup() == null ? other.getJobGroup() == null : this.getJobGroup().equals(other.getJobGroup()))
            && (this.getCron() == null ? other.getCron() == null : this.getCron().equals(other.getCron()))
            && (this.getIsLocal() == null ? other.getIsLocal() == null : this.getIsLocal().equals(other.getIsLocal()))
            && (this.getRemoteRequestMethod() == null ? other.getRemoteRequestMethod() == null : this.getRemoteRequestMethod().equals(other.getRemoteRequestMethod()))
            && (this.getRemoteUrl() == null ? other.getRemoteUrl() == null : this.getRemoteUrl().equals(other.getRemoteUrl()))
            && (this.getBeanClass() == null ? other.getBeanClass() == null : this.getBeanClass().equals(other.getBeanClass()))
            && (this.getMethodName() == null ? other.getMethodName() == null : this.getMethodName().equals(other.getMethodName()))
            && (this.getJobTrigger() == null ? other.getJobTrigger() == null : this.getJobTrigger().equals(other.getJobTrigger()))
            && (this.getParams() == null ? other.getParams() == null : this.getParams().equals(other.getParams()))
            && (this.getIsAsync() == null ? other.getIsAsync() == null : this.getIsAsync().equals(other.getIsAsync()))
            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getError() == null ? other.getError() == null : this.getError().equals(other.getError()))
            && (this.getTimes() == null ? other.getTimes() == null : this.getTimes().equals(other.getTimes()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getJobId() == null) ? 0 : getJobId().hashCode());
        result = prime * result + ((getJobName() == null) ? 0 : getJobName().hashCode());
        result = prime * result + ((getJobGroup() == null) ? 0 : getJobGroup().hashCode());
        result = prime * result + ((getCron() == null) ? 0 : getCron().hashCode());
        result = prime * result + ((getIsLocal() == null) ? 0 : getIsLocal().hashCode());
        result = prime * result + ((getRemoteRequestMethod() == null) ? 0 : getRemoteRequestMethod().hashCode());
        result = prime * result + ((getRemoteUrl() == null) ? 0 : getRemoteUrl().hashCode());
        result = prime * result + ((getBeanClass() == null) ? 0 : getBeanClass().hashCode());
        result = prime * result + ((getMethodName() == null) ? 0 : getMethodName().hashCode());
        result = prime * result + ((getJobTrigger() == null) ? 0 : getJobTrigger().hashCode());
        result = prime * result + ((getParams() == null) ? 0 : getParams().hashCode());
        result = prime * result + ((getIsAsync() == null) ? 0 : getIsAsync().hashCode());
        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getError() == null) ? 0 : getError().hashCode());
        result = prime * result + ((getTimes() == null) ? 0 : getTimes().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
        return result;
    }
}